Expand description
This tilde
crate utilizes the disused tilde operator ~
to generate
syntatic sugar for Rust program.
Features
-
Postfix macro. The syntax is
first_arg.~the_macro!(rest_args)
, which will be desugared asthe_macro!( first_arg, rest_args )
. -
Postfix function. The syntax is
first_arg.~the_fn(rest_args)
, which will be desugared asthe_fn( first_arg, rest_args )
.
More features will be added in the future.
License
Licensed under MIT.